if( SERVER ) then
	AddCSLuaFile( "shared.lua" )
	SWEP.Weight	= 50
	SWEP.AutoSwitchTo = false
	SWEP.AutoSwitchFrom = false
end

if( CLIENT ) then
	SWEP.PrintName	= "Costume"
	SWEP.Slot	= 4
	SWEP.SlotPos	= 1
	SWEP.DrawAmmo	= false
	SWEP.DrawCrosshair = false
end

SWEP.Base		= "weapon_base"

SWEP.Author		= "Enrico"
SWEP.Instructions	= ""
SWEP.Contact		= ""
SWEP.Purpose		= ""

SWEP.Primary.ClipSize = -1
SWEP.Primary.DefaultClip = -1
SWEP.Primary.Automatic = false
SWEP.Primary.Ammo = "none"
SWEP.Secondary.ClipSize = -1
SWEP.Secondary.DefaultClip = -1
SWEP.Secondary.Automatic = false
SWEP.Secondary.Ammo = "none" 
  
SWEP.ViewModel      = ""
SWEP.WorldModel   = "models/weapons/w_package.mdl"

function SWEP:Initialize()
	if( SERVER ) then
		self:SetWeaponHoldType( "slam" )
	end
end

function SWEP:PrimaryAttack()
	if CLIENT then return end
	self.Owner.Disguise = true
	local GMdl = gmod.GetGamemode().GMdl
	local Rand = math.random(1, #(GMdl))
	Mdl = GMdl[Rand]
	util.PrecacheModel( "models/player/"..Mdl..".mdl" )
	self.Owner:SetModel( "models/player/"..Mdl..".mdl" )
	self.Owner:StripWeapon("weapon_costume")
end

function SWEP:SecondaryAttack()
end

function SWEP:DrawWeaponSelection( x, y, wide, tall, alpha )  
	draw.SimpleText( "H", "CSSelectIcons", x + wide/2, y + tall*0.2, Color( 255, 210, 0, 255 ), TEXT_ALIGN_CENTER )
end